package com.qingyun.search.controller;




import com.qingyun.model.common.dtos.R;
import com.qingyun.model.search.dtos.UserSearchDto;
import com.qingyun.search.service.SearchService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.io.IOException;

@RestController
@RequestMapping("/video/search")
public class SearchController {

    @Resource
    private SearchService searchService;
    @PostMapping("/search")
    public R search(@RequestBody UserSearchDto dto) throws IOException {
        return searchService.search(dto);
    }
}
